@import "../../style/them.scss";
@import "../../style/iconfont";


page {
  box-sizing: border-box;
  background-color: #f7f9fb;

  .container {
    .top-card {
      background-color: #ffffff;
      height: 190rpx;
      display: flex;
      align-items: center;
      margin: 30rpx 30rpx 0 30rpx;
      border-top-left-radius: 15rpx;
      border-top-right-radius: 15rpx;
      border-bottom: #e6e6e6 solid 2rpx;

      .img {
        width: 120rpx;
        height: 120rpx;
        padding: 40rpx;

        image {
          box-shadow: $shadow;
          border-radius: 20rpx;
          width: 100%;
          height: 100%;
        }
      }

      .right-container {
        width: 470rpx;
        display: flex;
        align-items: center;
        justify-content: space-between;

        .food-name {
          font-size: 34rpx;
          font-weight: bold;
          margin-right: 60rpx;
        }

        .recommend {
          background-image: linear-gradient(to right, #adecad 0%, #D7FFFE 60%);
          font-size: 24rpx;
          font-weight: bold;
          color: green;
          padding: 12rpx 20rpx;
          border-radius: 40rpx;
        }

        .moderately {
          background-image: linear-gradient(-20deg, #e9defa 0%, #fbfcdb 100%);
          font-size: 24rpx;
          font-weight: bold;
          color: orange;
          padding: 12rpx 20rpx;
          border-radius: 40rpx;
        }
      }
    }

    .center-card {
      background-color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 120rpx;
      margin: 0 30rpx 30rpx 30rpx;
      border-radius: 15rpx;
      font-size: 34rpx;

      .iconfont {
        font-size: 40rpx;
      }

      .right {
        height: 80rpx;
        width: 350rpx;
        text-align: center;

        .text {
          margin-top: 8rpx;
          font-size: 24rpx;
        }
      }

      .left {
        border-left: 2rpx solid #d1d1d1;
        height: 80rpx;
        text-align: center;
        width: 350rpx;

        .text {
          margin-top: 8rpx;
          font-size: 24rpx;
        }
      }
    }

    .data-card {
      margin: 30rpx;
      box-shadow: $shadow;
      border-radius: 15rpx;
      padding: 20rpx 30rpx;

      .top {
        height: 90rpx;
        line-height: 90rpx;
        font-size: 32rpx;
        font-weight: bold;
        color: #8e8e8e;
        display: flex;
        justify-content: space-between;
        border-bottom: #dcdcdc solid 2rpx;
      }

      .item {
        height: 100rpx;
        line-height: 100rpx;
        font-size: 28rpx;
        display: flex;
        justify-content: space-between;
        border-bottom: #dcdcdc solid 2rpx;
      }
    }

    .tap-card {
      margin: 30rpx;
      box-shadow: $shadow;
      border-radius: 15rpx;
      padding: 20rpx 30rpx;

      .title {
        border-left: 10rpx solid #ab94f3;
        font-size: 36rpx;
        font-weight: bold;
        margin: 20rpx;
        padding-left: 15rpx;
      }

      .edible-suggestions {
        height: 200rpx;
        margin: 30rpx 10rpx;
        padding: 20rpx;
        border-radius: 10rpx;
        background-color: #f5f7fd;
        font-size: 28rpx;
        letter-spacing: 4rpx;
        color: $gray-text-color;
      }
    }
  }

  .share {
    position: fixed;
    bottom: 80rpx;
    right: 30rpx;
    width: 100rpx;
    height: 100rpx;

    .share-btn {
      width: 100%;
      height: 100%;
      border-radius: 50rpx;
      color: #ffffff;
      display: flex;
      flex-direction: column;
      box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
      background-image: linear-gradient(to right, #ed6ea0 0%, #ec8c69 100%);

      .iconfont {
        line-height: 74rpx;
        font-size: 40rpx;
      }

      text {
        line-height: 4rpx;
        font-size: 20rpx;
      }

      &:active {
        opacity: 0.6;
      }

      &::after {
        border: none;
        border-radius: 0;
      }
    }
  }
}